package com.glsc.ngateway.common.base.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OaWorkFlowRequestTableStatusEnum {
    CREATOR("1.发起人"),
    APPROVER("审批人"),
    FORCE_ARCHIVE("强制归档"),
    END("结束"),
    ;
    private final String status;

    public static boolean isReject(String status) {
        return OaWorkFlowRequestTableStatusEnum.CREATOR.getStatus().equals(status);
    }

    public static boolean isEnd(String status) {
        return OaWorkFlowRequestTableStatusEnum.CREATOR.getStatus().equals(status)
                || OaWorkFlowRequestTableStatusEnum.FORCE_ARCHIVE.getStatus().equals(status)
                || OaWorkFlowRequestTableStatusEnum.END.getStatus().equals(status);
    }

}
